package demo06;

public class Demo02 {
    public static void main(String[] args) {
        Singleton s1 = Singleton.getInstance();
        Singleton s2 = Singleton.getInstance();
        System.out.println(s1+"s1");
        System.out.println(s2+"s2");
//        Singleton s3 = new Singleton();
//        System.out.println(s3+"s3");
        Student str1 = Student.getInstance();
        Student str2 = Student.getInstance();
        System.out.println(str1+"str1");
        System.out.println(str2+"str2");
    }
}
